package com.lin.service.impl;
import com.lin.entity.Yunshu;
import com.lin.mapper.YunshuMapper;
import com.lin.service.IYunshuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class YunshuServiceImpl implements IYunshuService {
    @Autowired
    YunshuMapper yunshuMapper;



    @Override
    public List<Yunshu> listYunshu() {
        return yunshuMapper.listYunshu();
    }


    @Override
    public Yunshu selectYunshuById(Integer id) {
        return yunshuMapper.selectYunshuById(id);
    }


    @Override
    public int insertYunshu(Yunshu yunshu) {
        return yunshuMapper.insertYunshu(yunshu);
    }


    @Override
    public int deleteYunshuById(Integer id) {
        return yunshuMapper.deleteYunshuById(id);
    }


    @Override
    public int updateYunshu(Yunshu yunshu) {
        return yunshuMapper.updateYunshu(yunshu);
    }






}